﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace HospitalManagement.Web.PrimaryTumor
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					int SysNo=(Convert.ToInt32(strid));
					ShowInfo(SysNo);
				}
			}
		}
		
	private void ShowInfo(int SysNo)
	{
		HospitalManagement.BLL.PrimaryTumor bll=new HospitalManagement.BLL.PrimaryTumor();
		HospitalManagement.Model.PrimaryTumor model=bll.GetModel(SysNo);
		this.lblSysNo.Text=model.SysNo.ToString();
		this.lblPatientSysNo.Text=model.PatientSysNo.ToString();
		this.lblHospitalName.Text=model.HospitalName;
		this.lblSurgicalApproach.Text=model.SurgicalApproach;
		this.lblResectionSurgery.Text=model.ResectionSurgery;
		this.lblTumor.Text=model.Tumor;
		this.lblTumorTypes.Text=model.TumorTypes;
		this.lblSickNumber.Text=model.SickNumber;
		this.lblSickText.Text=model.SickText;
		this.lblNecrosisRate.Text=model.NecrosisRate;
		this.lblNecrosisRateVal.Text=model.NecrosisRateVal;
		this.lblSurgeon.Text=model.Surgeon;
        //this.lblDisabled.Text=model.Disabled.ToString();
        //this.lblIndate.Text=model.Indate.ToString();
        //this.lblInUser.Text=model.InUser;
        //this.lblEditDate.Text=model.EditDate.ToString();
        //this.lblEditUser.Text=model.EditUser;

	}


    }
}
